{% set rows = sql("select * from highlight where book_id = :id", {"id": id}) %} {% if not rows %} {{ raise_404("Book not found") }} {% endif %}
{% for hl in rows %} {% endfor %}
ID Note Highlight
{{ hl.id }} {% if hl.note != None %} {% else %}   {% endif %} {{ hl.text }}